package com.af.community.smart.business

import android.os.Bundle
import com.af.community.smart.base.BaseActivity
import com.af.community.smart.base.oneClick
import kotlinx.android.synthetic.main.activity_patrol.*
import org.jetbrains.anko.startActivity

class PatrolActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_patrol)
        initTitle(title = "选择巡检对象")
    }

    override fun initTitle(title: String, name: String) {
        super.initTitle(title, name)
        patrol_people.oneClick { startActivity<PatrolPeopleActivity>() }
        patrol_house.oneClick { startActivity<PatrolHouseActivity>() }
    }
}
